This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?xml version="1.0" encoding="utf-8"?> | |
| <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| android:background="@drawable/backgroundimage"> | |
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <resources> | |
| <!-- Declare custom theme attributes that allow changing which styles are | |
| used for button bars depending on the API level. | |
| ?android:attr/buttonBarStyle is new as of API 11 so this is | |
| necessary to support previous API levels. --> | |
| <declare-styleable name="CircleImageView"> | |
| <attr name="civ_border_width" format="dimension" /> | |
| <attr name="civ_border_color" format="color" /> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import android.content.Context | |
| import android.graphics.* | |
| import android.graphics.drawable.BitmapDrawable | |
| import android.graphics.drawable.ColorDrawable | |
| import android.graphics.drawable.Drawable | |
| import android.net.Uri | |
| import android.util.AttributeSet | |
| import android.widget.ImageView | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| /** | |
| * Created by PhpStorm. | |
| * User: kogi | |
| * Date: 13/01/19 | |
| * Time: 9:30 AM | |
| */ | |
| /** | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | String a="{\"userDetails\":[{\"ID\":\"4\",\"productName\":\"shoes\",\"brandName\":\"\",\"category\":\"\",\"" + | |
| "description\":\"awesome \",\"" + | |
| "sellingPrice\":\"2000\",\"productStatus\":\"Antoney\",\"imagePath\":\"download.jpeg\"}]}"; | |
| //METHOD 1 USE OWN PARSER METHOD | |
| public List<UserDetails> parse(String data){ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | //Create a webview client class | |
| public class MyAppWebViewClient extends WebViewClient { | |
| boolean refreshed; | |
| String url; | |
| public MyAppWebViewClient(String url) { | |
| this.url = url; | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | //Steps | |
| //1 Convert the image to a bitmap ofrom file | |
| //Convert file to bitmap | |
| public Bitmap getThumbnail(String filename) { | |
| Bitmap thumnail = BitmapFactory.decodeResource(getContext().getResources(), R.drawable.ic_person_black_24dp); | 
NewerOlder