[Solved] Map and Cardview Activities

Here is the example of what you are trying to achieve: Libraries required: compile ‘com.github.ksoichiro:android-observablescrollview:1.5.0’ compile ‘com.nineoldandroids:library:2.4.0’ Sample XML code: <?xml version=”1.0″ encoding=”utf-8″?> <RelativeLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_height=”match_parent” app:layout_behavior=”@string/appbar_scrolling_view_behavior” tools:showIn=”@layout/activity_main”> <com.github.ksoichiro.android.observablescrollview.ObservableScrollView android:id=”@+id/scroll” android:layout_width=”match_parent” android:layout_height=”match_parent” android:fillViewport=”true”> <RelativeLayout android:layout_width=”match_parent” android:layout_height=”wrap_content” android:gravity=”center_horizontal|start”> <!– YOUR MAP FRAGMENT HERE –> <ImageView android:id=”@+id/image” android:layout_width=”match_parent” android:layout_height=”@dimen/parallax_image_height” android:layout_gravity=”top” android:scaleType=”centerCrop” android:src=”https://stackoverflow.com/questions/45178569/@drawable/putin” /> <View … Read more

[Solved] How can I add two button (one is back, one is next) under scrollview that filled with textview and imageview in a screen, android?

This is what XML is for. Create your layout in xml and import it via java. You will want to create your own “bar layout” for the bars in the center, though you could I suppose, fill 3 separate LinearLayouts to achieve the same effect, making a separate layout and putting in it here will … Read more

[Solved] Error parsing XML: unbound prefix in activity_main xml file

Use -1dp instead of only -1 for example <?xml version=”1.0″ encoding=”utf-8″?> <RelativeLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:customview=”http://schemas.android.com/apk/res-auto” android:background=”#000000″ android:layout_height=”-1dp” android:layout_width=”-1dp”> <WebView android:id=”@+id/webView1″ android:layout_alignParentBottom=”true” android:layout_alignParentLeft=”true” android:layout_height=”-1dp” android:layout_width=”-1dp” /> <ProgressBar android:id=”@+id/progressBar1″ android:layout_centerHorizontal=”true” android:layout_centerVertical=”true” android:layout_height=”-2dp” android:layout_width=”-2dp” /> <RelativeLayout android:id=”@+id/RlayBotm” android:layout_alignParentBottom=”true” android:layout_alignParentLeft=”true” android:layout_height=”40dp” android:layout_width=”-1dp”> <WebView android:id=”@+id/adsview” android:layout_centerHorizontal=”true” android:layout_centerVertical=”true” android:layout_height=”-1dp” android:layout_width=”-1dp” android:scrollbars=”0″ /> </RelativeLayout> <RelativeLayout android:id=”@+id/welcome” android:layout_alignParentRight=”true” android:layout_alignParentTop=”true” android:layout_height=”-1dp” android:layout_width=”-1dp”> <ImageView android:background=”#000000″ android:id=”@+id/img” … Read more

[Solved] Hello i have a issue with this example

You have to user Exifinterface and Matrix to get the right orientation. try this: public static void handleImageRotation(Context context, File mFileTemp) { if (!mFileTemp.exists()) { Toast.makeText(context, “File not found”, Toast.LENGTH_SHORT).show(); return; } ExifInterface exif = null; int orientation = ExifInterface.ORIENTATION_NORMAL; try { exif = new ExifInterface(mFileTemp.getAbsolutePath()); orientation = exif.getAttributeInt( ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL); } catch (Exception e) … Read more

[Solved] What does ‘view’ container do in XML of Android

I think in this code, view application is clear: <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_height=”match_parent” android:orientation=”vertical”> <android.support.design.widget.TabLayout android:id=”@+id/tabs” android:layout_width=”match_parent” android:layout_height=”?attr/actionBarSize” app:tabGravity=”fill” app:tabMode=”fixed” /> <View android:layout_width=”match_parent” android:layout_height=”1dp” android:background=”#c6c4c4″ /> <android.support.v4.view.ViewPager android:id=”@+id/viewpager” android:layout_width=”match_parent” android:layout_height=”match_parent” /> </LinearLayout> When view is in xml output will be: But without view in xml output will be: solved What … Read more

[Solved] LINQ to XML attributes

You can do it this way: var result= xdoc.Descendants(“image”) .Where(x => x.Attribute(“size”).Value == “large”) .Select(x => new User{ Image = x.Value }); Here is Working Example Fiddle solved LINQ to XML attributes

[Solved] Need to draw a shape for android in xml, the design will hold a “X” and some vertical and horizontal line also [closed]

I recommend using a <vector> drawable for this. <vector xmlns:android=”http://schemas.android.com/apk/res/android” android:width=”24dp” android:height=”24dp” android:viewportWidth=”24.0″ android:viewportHeight=”24.0″> <path android:strokeColor=”#000″ android:strokeWidth=”1″ android:pathData=”M1 1h22v22h-22zM1 1l22 22M1 23l22 -22M1 12h22M12 1v22″/> </vector> solved Need to draw a shape for android in xml, the design will hold a “X” and some vertical and horizontal line also [closed]

[Solved] Xml Parsing in Visual Studio 2015

You need to check oras like this string doc = @”<Absolventi nume=”Ace Timisoara”> <id>7</id> <oras>Timisoara</oras> </Absolventi>”; XmlDocument xDoc = new XmlDocument(); xDoc.LoadXml(doc); foreach (XmlNode node in xDoc.ChildNodes) { Console.WriteLine(node.Attributes[“nume”].Value); Console.WriteLine(node[“id”].InnerText); Console.WriteLine(node[“oras”].InnerText); } Test here 1 solved Xml Parsing in Visual Studio 2015

[Solved] How to change mic icon with send button when user starts typing in android [closed]

Just add TextChangedListener on EditText: EditText commentText=(EditText)findViewById(R.id.edit); commentText.addTextChangedListener(new TextWatcher() { @Override public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) { } @Override public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) { String val=charSequence.toString(); // chaeck if edittext have any character or empty. then // there are two way to handle switch … Read more

[Solved] Storing content in a buffer [closed]

I guess you’re looking for ArrayList. For example : ArrayList<String> listNodeContent= new ArrayList<String>(); //your code listNodeContent.add(current.getChild(“C”).getContent(0)); Then you can retrieve the content using different methods : ArrayList#get(int index), with an iterator (ArrayList#iterator()) or with a foreach loop : for(String tmp : listNodeContent){ System.out.println(tmp); } 6 solved Storing content in a buffer [closed]