Questions tagged [android-tools-namespace]

The `tools` namespace allows for showing custom `View` properties inside Android Studio view designer.

More info:

http://tools.android.com/tech-docs/tools-attributes

http://tools.android.com/tips/layout-designtime-attributes

25 questions
5
votes
2 answers

Tools namespace android listitem

I'm trying to use the "tools" namespace feature in Android Studio. I'm trying to populate the ListView with dummy list items, for design purposes. The link here says the tools:listitem="@android:layout/" should do. But for some reason,…
Rijul
  • 515
  • 7
  • 19
3
votes
2 answers

Android: sampledata subdirectories not showing up in Android Studio 3.X

I am trying to create UI preview using tools:text in my layout.xml For the files inside the sampledata directory. I am able to reference them in xml and see them in preview But for files inside the sampledata subdirectory i am not able to access…
2
votes
1 answer

How do I install android SDK using SDK tools-version 26.1.1

I just wanted to install Android SDK for Appium setup and grid test. But i did not find the SDK tools version 24.1.1. So I had to download 26.1.1 (windows) version and in this version, I am not able to find the sdkmanager.exe instead I got…
2
votes
2 answers

List of available attributes for tools namespace

I noticed that there are an additional namespace "tools" available for android layouts. Then I tried, but failed :) to find a list of all attributes one can use. So far I am aware of this: tools:ignore tools:listitem I would like to find a list of…
Sabo
  • 1,635
  • 1
  • 19
  • 24
1
vote
1 answer

Sample texts of android tools are not being displayed in layout preview

According to https://developer.android.com/studio/write/tool-attributes you only add the namespace to the root element and then you can use the tools attributes. Though, the following code doesn't show me the specified sample text in the layout…
1
vote
1 answer

Android Library CardView attribute not found

I have created a library that uses Android CardView. The library is available as aar file. When I add the aar file to the project, it gives the following error, on syncing. I still have not used it in the project attribute for 'cardElevation' not…
user2536851
  • 314
  • 3
  • 11
0
votes
1 answer

Cannot find adb under platform-tools

I have installed android-sdk through command line command - brew install --cask android-sdk and have also installed the platform tools. I have this folder structure /usr/local/share/android-sdk under this, i have the…
0
votes
1 answer

What is the difference between the name attribute and context attribute in android XML?

I am beginner in android and was wondering what the difference is between the tools:context and android:name attributes? 1. android:name=".fragments.DataFragment" 2. tools:context=".activities.MainActivity" The full code:
0
votes
0 answers

Memory (RAM) Clean Function for Oreo

Unable to get the total size of memory use like "CLEAN MASTER" APP in only 8.0, rest of version are working fine. We are trying to search from last 10 days but unable to found anything if anyone has suggestions then kindly help us. Note:- issue is…
0
votes
1 answer

Namespace declaration is never used: checks for unused namespace declarations and location hints in XML

xmlns:tools="http://schemas.android.com/tools" this one is my problem it is said that "Namespace declaration is never used"
Joshua
  • 11
  • 1
  • 7
1
2