1. Realize that all activity in the application is full screen
Join directly in the manifest
Copy Code code as follows:
Android:theme= "@android: Style/theme.notitlebar.fullscreen"
2. Achieve a single activity full screen
Copy Code code as follows:
Requestwindowfeature (Window.feature_no_title);
GetWindow (). SetFlags (WindowManager.LayoutParams.TYPE_STATUS_BAR, WindowManager.LayoutParams.TYPE_STATUS_BAR);
Remove the title bar of Android to enable full screen and rotate the screen.
This is a very common problem. In fact, it is very simple. I will not talk about it much, but I will go directly to the code.
Public class MainActivity extends Activity {@ Override protected void onCreate (Bundle savedInstanceState) {super. onCreate (savedInstanceState); requestWindowFeature (Window. FEATURE_NO_TITLE); //
Now I firmly believe that writing a technical blog is of great help to myself. writing a blog gives me a chance to learn and think.
There are three methods to remove the title bar in Android, which also have their own characteristics.
1. Implement in code
This. requestwindowfeature (window. feature_no_title); // remove the title bar.
Remember: This code should be
In many cases, the lock screen password has been forgotten due to our negligence. There is also no USB debugging turned on, and there is data to keep in the built-in storage. We need to remove the lock screen password without clearing the data. Next we'll show you how to do it.PrecautionsThe first thing to note is that this method cannot be used for devices that are already bound to data encryption. For example, Motorola, set the input lock screen pas
Where background, can be set to other colors etc.TextColor not necessarily null, you can set the font colorAdd underlinepublic class Lineedittext extends EditText { //brushes are used to draw the underlined private paint paint; Public Lineedittext (context context, AttributeSet Attrs) { Super (context, attrs); Paint = new paint (); Paint.setstyle (Paint.Style.STROKE); Paint.setcolor (color.red); Turn on anti-aliasing memory Paint
In JB2, video trimming is added. Currently, google does not support video trimming in non-mp4 format by default. In the image library, the toast prompt is displayed, indicating that the video cannot be edited due to an error ". How to remove the "trim" option for videos in non-mp4 format
Modify the updateMenuOperations () method in Gallery2 \ src \ com \ android \ gallery3d \ app \ PhotoPage. java:Private
Android:attr/textviewstyle " android:background=" @null " android:textcolor=" @null " /> Background, can be set into other colors, etc.TextColor not necessarily null, can set font colorAdd underlinepublic class Lineedittext extends EditText { //brushes are used to draw the underlined private paint paint; Public Lineedittext (context context, AttributeSet Attrs) { Super (context, attrs); Paint = new paint (); Paint.setstyle (Paint.St
Defined in the style as follows:
If you want the entire app to be the same, you can change the Androidmanifest.xml and refer to the style on application:
If you just want to act on an activity, then change the theme of one of the actions.
The above is a small set to introduce Android through the style to remove the app's head and Interface Full screen (memo), hope to help everyone, if you
In jb2, video trimming is added. Currently, Google does not support video trimming in non-MP4 format by default. In the image library, the toast prompt is displayed, indicating that the video cannot be edited due to an error ". How to remove the "trim" option for videos in non-MP4 format
Modify the updatemenuoperations () method in gallery2 \ SRC \ com \ Android \ gallery3d \ app \ photopage. Java:
Priv
Android -- remove the EditText border and add underscores
The background can be set to other colors.
TextColor is not necessarily null. You can set the font color.
Underline
Public class LineEditText extends EditText {// Paint brush used to draw the underline private paint; public LineEditText (Context context, AttributeSet attrs) {super (context, attrs); Paint = new Paint (); paint. setStyle (Paint. st
Add the following to the values/style. xml file:Code(If the file does not exist, create an XML file named style. xml)
Remove the background color border and set the background color in your layer.
Step 2 add Android: theme = "@ style/mydialogtheme" to your registered activity in androidmanifest. XML, which is the style name above.
Pop-up Layer Method
Intent intent = new intent (detail_goods.thi
the size of the setting. swipe:swipeoffsetleft= "0DP" NBSP; swipe:swipeoffsetright= "0DP" NBSP; take a look at the item layout file, which includes the front and back, Two overlapping: This layout is a regular layout and I won't explain it.Mainactivity.java, there are notes in the key places.public class Mainactivity extends Activity {private Swipelistview mswipelistview; Private Swipeadapter Madapter; public static int devicewidth; Private list data adapter: public class Swipeadap
1. In Java code
(Invalid when splashactivity inherits Appcompatactivity)
2. Change theme in Manifest.xml
3. First custom style in Style.xml
Then refer to the manifest.xml in the
The above is a small set of Android to introduce you to remove the title bar of several methods (three kinds), I hope to help you, if you have any questions please give me a message, small series will prompt
No more nonsense to say, directly to everyone paste code.
Where background can be set to other colors, etc.
TextColor not necessarily null, you can set the font color
Underline
public class Lineedittext extends EditText {
//brushes are used to underline
private Paint Paint;
Public Lineedittext (context, AttributeSet attrs) {
Super (context, attrs);
Paint = new paint ();
Paint.setstyle (Paint.Style.STROKE);
Paint.setcolor (color.red);
Open anti-aliasing for Memory
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.