Questions tagged [resource-id]

51 questions
0
votes
0 answers

Resource IDs will be non-final by default in Android Gradle Plugin version 8.0, avoid using them in switch case statements (2022)

I am using a bottom navigation bar from the below link. https://github.com/Droppers/AnimatedBottomBar#configuration I am trying to switch/open a new fragment on clicking the buttons in the bottom navigation. This is my code: public class…
0
votes
1 answer

Trying to Get child node(Switch ) from Parent(LinearLayout) via AndroidFindby(resourceid), Appium

(class=android.widget.LinearLayout,resource-id=settings_language_selection_toggle,index=1 ) (class=android.widget.RelativeLayout,index=0) (class=android.widget.LinearLayout,resource-id=widget_frame, index=1) …
0
votes
1 answer

Appium Or( | ) Condition for UiSelector().ResoureIdMatches gives NoSuchElementException

I'm creating a POM class for a Header class/widget in an Main Activity section (Reddit app is the example. See screenshots below.) Going through Inspector, I see header would have Search box available, but if I were to move to another section/tab of…
0
votes
0 answers

FullCalendar GCal ResourceIDs Query

Reference: FullCalendar 3.9.0, FullCalendar-Scheduler 1.9.4 As the original question posted received no response I'm trying again. Can anyone confirm whether or not it is possible to group Google calendar events by resource? Adding a resourceId…
ridgedale
  • 190
  • 1
  • 1
  • 14
0
votes
0 answers

Android textview id by string

I have a textview whose id is asd1 If I save asd1 in a string how can I use that string to R.id.(id from string) Meaning how can I use the string to get resource id in a fragment
zAmAr
  • 29
  • 5
0
votes
2 answers

Xamarin - No resource Id shown or available in image properties

I am trying to embed an image in Xamarin and was expecting to see a resource Id appear in the properties of the image. It seems to be a problem that I cannot find an answer for. I have updated VS, JDK to 64 bit, updated Xamarin, cleaned rebuilt,…
The OrangeGoblin
  • 764
  • 2
  • 7
  • 27
0
votes
1 answer

resource IDs in VC++

I define resource IDs as below: #define _RESOURCE_ID 150 #define IDR_OPBUTTON _RESOURCE_ID + 10 When I use below code to change the text of button, it doesn't work: SetDlgItemText(hWnd, IDR_OPBUTTON,…
sky
  • 522
  • 8
  • 13
0
votes
1 answer

Xamarin generated resource Id out of sync with Android inflated view

I have a ListView adapter that inflates a view to show in a ListView. When I try to get some of the items from the View by using FindViewById( Resource.Id.ItemId ) the debugger throws and error saying: "System.InvalidCastException: Unable to convert…
Terry151151
  • 631
  • 1
  • 8
  • 15
0
votes
2 answers

Android: Unable to get search button from searchView.

I want to change the search icon coz at the moment my search button icon was white.. Therefore i found a code to get the view of the search button. SearchView searchView = (SearchView) menu.findItem(R.id.action_search) …
LittleFunny
  • 8,155
  • 15
  • 87
  • 198
0
votes
1 answer

Gap in resource IDs for a new ATL project in Visual Studio 2010

When I create a brand new ATL project in Visual Studio 2010, resource IDs 102 and 105 are left out. Is this intentional or a bug? Do these IDs serve any purpose later in the project? Can I reorder the numbering to use these? Here is the resource…
A9S6
  • 6,575
  • 10
  • 50
  • 82
0
votes
1 answer

Android get Resource Identifier for a resource that doesn't belong to my app

This is how we get a resource identifier for a drawable that belongs to our app int resID = getResources().getIdentifier("resourceName", "drawable", "myPackageName"); But how do we do it when the drawable is not ours? 1. It belongs to android 2.…
Anonymous
  • 4,470
  • 3
  • 36
  • 67
0
votes
1 answer

Get Resource with ID from String

My program is supposed to have a listview, which when clicked, displays information for the clicked item. My problem is that I have attached the clicked item's name as an extra of the Intent that starts the new Activity. The information I need to…
0
votes
1 answer

After adding google-play-service_lib my resourceIds cannot be recognized

I am using ADT 23.0.2. I just imported the google-play library to my workspace and added the reference to it in my project. Now nowhere in my project the resource ids can be recognized because there is no R file. (Anywhere I have R.id.blah I get…
Fatima
  • 869
  • 10
  • 35
0
votes
1 answer

Set Site Permissions for a Role Programmatically Liferay 6.2

I am creating a startup hook script for liferay to add and preconfigure Roles for Liferay 6.2 behind the scenes. Specifically I am looking to add the type of permissions that can be accessed through Control Panel > Roles > Actions> Define…
zeeble
  • 11
  • 1
  • 4
0
votes
0 answers

Resource id from Contact Photo URI on Android

I only know how to use a Uri for the contact photo i.e. content://com.android.contacts/contacts/100/photo Is there a way to "extract" the int resource id for a contact photo from the Uri?
cmike
  • 51
  • 6