Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <application
- android:allowBackup="true"
- android:icon="@mipmap/ic_launcher"
- **android:label="@string/app_name"**
- android:roundIcon="@mipmap/ic_launcher_round"
- android:supportsRtl="true"
- android:theme="@style/AppTheme">
- <activity android:name=".MainActivity">
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- </application>
- ActionBar actionbar = getActionBar();
- TextView textview = new TextView(getApplicationContext());
- LayoutParams lps = new RelativeLayout.LayoutParams(LayoutParams.MATCH_PARENT,
- LayoutParams.WRAP_CONTENT);
- textview.setLayoutParams(lps);
- textview.setText("CAIN");
- textview.setTextColor(Color.WHITE);
- textview.setGravity(Gravity.CENTER);
- textview.setTextSize(22);
- actionbar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
- actionbar.setCustomView(textview);
Add Comment
Please, Sign In to add comment