android-actionbaractivity

can not remove title bar in Activity

£可爱£侵袭症+ 提交于 2019-12-22 03:57:06
问题 i want to remove title on top of my Activity. i tried this two way they work but not in api level 8. 1: <style name="NOtitleTheme" parent="Theme.AppCompat.Light"> <item name="android:windowFullscreen">true</item> <item name="android:windowNoTitle">true</item> </style> 2: this.requestWindowFeature(Window.FEATURE_NO_TITLE); any idea why this does not work on api 8 ? once i managed to remove it in api 8 , but i do not remember how. EDIT: Solved! the problem was this.requestWindowFeature(Window

Extended Toolbar with Custom View not Displaying with Full Width

旧城冷巷雨未停 提交于 2019-12-20 10:05:38
问题 I went through lots of answers here related to Toolbar but none of the answers could help me. What I'm trying to achieve is to have an extended toolbar whhich will display a logo, possibly a name of the Activity/App, it will have an action button/drawer toggle to the right that will display a navigation-like drawer to the right, an overflow menu with other options like settings and also a navigation Tab at the bottom that will allow the user to move between different fragments (different days

ActionBarActivity - NoClassDefFoundError exception

倖福魔咒の 提交于 2019-12-19 10:17:31
问题 Already seen: NoClassDefFoundError Android with ActionBarActivity and ActionBarActivity catch an error on Phone I am trying to use ActionBarCompact in my project. I have linked android-support-v7 project as well as its jar in my project following and checking the steps from lots of sources, but still I am unable to deal with the problem. When I built my project, there is no error, but there is exception at runtime. Don't know why class is not detected. Please tell me what is wrong. Thanks.

How to center toolbar back button?

旧街凉风 提交于 2019-12-18 18:48:20
问题 I'm having a problem trying to center the back button on the support toolbar. I'm using it inside an ActionBarActivity. <android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:toolbar="http://schemas.android.com/apk/res-auto" android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?attr/colorPrimary" android:minHeight="?attr/actionBarSize" toolbar:popupTheme="@style/ThemeOverlay

Set OnClick Listener on Action Bar Title in Android

帅比萌擦擦* 提交于 2019-12-17 22:46:03
问题 I am working on android application where I am using ActionBar so there one is navigation drawer icon to open it and title of ActionBar in ActionBar . I want to set a click listener on title of ActionBar such that it start a new Activity and set click listener different on navigation drawer icon to open navigation drawer menu. I achieved a click on navigation drawer icon but when I click on title of ActionBar title also then it open the navigation drawer menu. Is there any way to set

Change Icon Of Navigation Drawer

非 Y 不嫁゛ 提交于 2019-12-17 15:29:58
问题 I am having trouble with changing my navigation drawer icon to a custom one. I've currently had to implement the standard drawer icon which has 3 horizontal lines on top, but now I want to replace this with my custom drawer icon. This is how my mDrawerToggle is at the moment: mDrawerToggle=new ActionBarDrawerToggle(this, mDrawerLayout, R.drawable.app_icon, R.string.drawer_open) { // My code }; 回答1: Here is the sample code taken from Creating a Navigation Drawer Activity.class public class

cannot find Symbol class ActionBarActivity (Android Recycled View)

▼魔方 西西 提交于 2019-12-12 13:18:48
问题 I have some problem when i build graddle.. i don't understand where is the probleme, i read many things about that, but i can't find the solution.. i have already: download the Repository , put in the dependencies and the latest SDK version . I try to make CardView in the HomeActivity.xml . I have also MyViewHolder.java , PageAdapter.java and `MyObject.java so.. i need some help If you want the other file, i have made 3 TabLayout . the code is in the MainActivity.java. Information:Gradle

Android: Action bar home button customize

非 Y 不嫁゛ 提交于 2019-12-12 06:08:06
问题 I am developing an application in which what the need in action bar is shown in image: I need to apply back arrow with text and search icon custom from drawable. My API level is from min 13 to 21 max. I searched on Google and found to do this from style.xml as: <style name="Theme.MyFancyTheme" parent="android:Theme.Holo"> <item name="android:homeAsUpIndicator">@drawable/my_fancy_up_indicator</item> </style> But its not working. I also tried : getActionBar().setDisplayHomeAsUpEnabled(true);

findFragmentByTag() returns null only on the third tab of the ActioBar

自古美人都是妖i 提交于 2019-12-12 01:53:16
问题 I am using a tabbed Activity provided by Android with android.support.v7.app.ActionBar.TabListener , ViewPager and FragmentPagerAdapter . The parent Activty cointains and manages three Fragment . In addition, the parent Activity has a method to save the data provided by the fragments. In order to get the data defined in them (and not sended by the parent Activity) I am wrote the following code: MyFragment frag = (MyFragment) mSectionsPagerAdapter.getActiveFragment(mViewPager,1

Why the menu items appear on the optionsMenu?

喜欢而已 提交于 2019-12-11 08:59:11
问题 Despite there are some icons associated with certain action and have no enough space in the Actionbar , they appear in the optionsMenu instead of appearing in the overflow icon. I am inflating the actionBar with five icons each one has a specific functionality "Please refer to the XML file below", the items which have the android:showAsAction=never I expect them to implicitly reside inside the overflow icon on the actionBar , but when I run the App, any item with the property android